<?php

use Webman\Route;

Route::group('/blog', function () {
    Route::any('', [plugin\huiblog\app\controller\IndexController::class, 'index']);
    Route::any('/', [plugin\huiblog\app\controller\IndexController::class, 'index']);
    Route::any('/article/id/{id}', [plugin\huiblog\app\controller\IndexController::class, 'article']);
    Route::any('/actions', [plugin\huiblog\app\controller\IndexController::class, 'actions']);
    Route::any('/search', [plugin\huiblog\app\controller\IndexController::class, 'search']);
    Route::any('/lists', [plugin\huiblog\app\controller\IndexController::class, 'lists']);
    Route::any('/archives', [plugin\huiblog\app\controller\IndexController::class, 'archives']);
})->middleware([
    plugin\huiblog\app\middleware\MiddlewareA::class,
]);
